An input range that returns value for each pixel in the image
SwappableImage!RGB8 image = ...; foreach(pixel; image.fillRange(RGB8(77, 82, 31))) { writeln(pixel, " at x:", pixel.x, " y:", pixel.y); writeln("\tImage has size width:", pixel.imageWidth, " height:", pixel.imageHeight); }
Fills a range as replacement for an image size.
Can be used to initialize an image with a set color.